<?php

/*

  Action	$2

  Debug card, if you play it, your opponent will know you are cheating!
  +5 Card
  +5 Actions
  +5 Buys
  +5$ +5 potions

 */

class HolyBomb extends Card implements iAction, iKingdom, iHolyGrail {

    public function __construct() {
        parent::__construct("Holy Bomb", 2);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "Debug card, if you play it, your opponent will know you are cheating!",
            "+5 Card",
            "+5 Actions",
            "+5 Buys",
            "+5$ +5 potions");
    }

    public function isImplemented() {
        return false;
    }

    public function play(Game $game, $isRealCard) {
        $game->addActions(5);
        $game->addBuys(5);
        $game->addMoney(new Price(5, 5));
        $drawed_cards = $game->drawCards(5);
        ScreenDisplay::addScreenMessage($game, true, "are cheating!!!", "is cheating!!!");
        ScreenDisplay::addScreenMessage($game, true, "get +5 actions, +5 buys, +5$, +5 potions and draw ".  nicePrint($drawed_cards), 
                "gets +5 actions, +5 buys, +5$, +5 potions and draws ". sizeof ($drawed_cards). " cards");
        $game->cardActionFinished();
        return true;
    }

}

?>